Integrated Observer Pattern into the GumballMachine