Making instance of global variables inside the class