private static void AddToppings(Pizza pizza) { string toppingsInput = String.Empty; while ((toppingsInput = Console.ReadLine()) != "END") { string[] tokens = toppingsInput.Split(); string toppingName = tokens[1]; int weight = int.Parse(tokens[2]); Topping topping = new Topping(toppingName, weight); pizza.AddToppingToPizza(topping); } }