static void RunBoiler(ChocolateBoiler boiler) { while (true) { boiler.Fill(); Thread.Sleep(1000); boiler.Boil(); Thread.Sleep(3000); boiler.Drain(); Thread.Sleep(1000); } // forever } // RunBoiler