Inspector i already added to my world. you are right, 'inspector' in line 6 doesn't refer to same object. How can i use the Inspector object which is added in my world or In other words how can i call update() method (line 73 ) from class GumballMachine at line 6.

