ok so it is more like a global variable ? check this:
you might also use a static class or the singleton pattern.