I am using the concept of an inner class in which I have built functionality in such a way that the inner class will only be called by using the outer class. For some reason