setting values of global variables in the class constructor