public void Run()
        {
            string input = string.Empty;

            while ((input = Console.ReadLine()) != "Beast!")
            {
                try
                {
                    string animalType = input;

                    string[] elements = Console.ReadLine()
                                        .Split(" ")
                                        .ToArray();

                    Animal animal = AnimalFactory.Create(animalType, elements);

                    Console.WriteLine(animal);
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
        public static void Main()
        {
            string animalType = Console.ReadLine();
            var    animals    = new List <Animal>();

            while (animalType != "Beast!")
            {
                string[] animalInfo = Console.ReadLine().Split(" ");

                try
                {
                    var animal = AnimalFactory.Create(animalType, animalInfo);
                    animals.Add(animal);
                }
                catch (ArgumentException ex)
                {
                    Console.WriteLine(ex.Message);
                }

                animalType = Console.ReadLine();
            }

            Console.WriteLine($"{string.Join(Environment.NewLine, animals)}");
        }