public static void Rect() { bool Choice; EggCarton Carton = new EggCarton(); do { Console.WriteLine("How many White eggs do you have?"); Carton.SetWhiteEggs(int.Parse(Console.ReadLine())); Console.WriteLine("How many Brown eggs do you have"); Carton.SetBrownEggs(int.Parse(Console.ReadLine())); Console.WriteLine("Anymore eggs? yes/no"); string x = Console.ReadLine(); if (x == "yes") { Choice = true; } else if (x == "no") { Choice = false; } else { Choice = true; } } while (Choice); Console.WriteLine("Okay so you have {0} Brown eggs , and {1} White eggs in the Carton.", Carton.GetBrownEggs(), Carton.GetWhiteEggs()); Console.ReadLine(); }