public void Run() { string[] input = Console.ReadLine().Split(); for (int i = 0; i < input.Length; i++) { string type = input[i]; Food food = foodFactory.CreateFood(type); foods.Add(food); } int totalHappiness = CalculateHappiness(); Mood mood = moodFactory.DetermineMood(totalHappiness); Console.WriteLine(totalHappiness); Console.WriteLine(mood.Name); }