Adding instance of the global variable inside the class