Changing global variable f_number to class instance variable