public IGumballMachineState InsertCoin()
 {
     Console.WriteLine("Coin inserted.");
     return(HasCoinState.GetInstance());
 }
 public static IGumballMachineState GetInstance()
 {
     return(_instance ?? (_instance = new HasCoinState()));
 }