public void UpdateGasCar()
        {
            Console.Clear();
            ListAllGasCars();
            Console.WriteLine("Please enter the year make and model of the car to update(yyyy make model)");
            string oldcarToUpdate = Console.ReadLine();
            var    carToUpdate    = new GasCar();

            carToUpdate = _cars.GetGasCarByTitle(oldcarToUpdate);
            Console.Clear();
            bool makeChanges = true;

            while (makeChanges == true && carToUpdate != null)
            {
                makeChanges = false;
                Console.WriteLine($"What property would you like to change? Or select 6 to cancel.\n");
                carToUpdate.PrintProps();
                Console.WriteLine("6. Cancel");
                string propertyAnswer = Console.ReadLine().ToLower();
                Console.Clear();
                switch (propertyAnswer)
                {
                case "1":
                    Console.WriteLine("Enter a new make");
                    carToUpdate.Make = Console.ReadLine();
                    Console.Clear();
                    Console.WriteLine($"Make is now {carToUpdate.Make}\n");
                    Console.WriteLine("Press any key to return to menu...");
                    Console.ReadKey();
                    Console.Clear();
                    break;

                case "2":
                    Console.WriteLine("Enter a model");
                    carToUpdate.Model = Console.ReadLine();
                    Console.Clear();
                    Console.WriteLine($"Model is now {carToUpdate.Model}\n");
                    Console.WriteLine("Press any key to return to menu...");
                    Console.ReadKey();
                    Console.Clear();
                    break;

                case "3":
                    Console.WriteLine("Enter a year");
                    carToUpdate.Year = Console.ReadLine();
                    Console.Clear();
                    Console.WriteLine($"Year is now {carToUpdate.Year}\n");
                    Console.WriteLine("Press any key to return to menu...");
                    Console.ReadKey();
                    Console.Clear();
                    break;

                case "4":
                    Console.WriteLine("Enter a CostToDrive");
                    try
                    {
                        carToUpdate.CostToDrivePerYear = int.Parse(Console.ReadLine());
                        Console.Clear();
                        Console.WriteLine($"CostToDrive is now {carToUpdate.CostToDrivePerYear}\n");
                        Console.WriteLine("Press any key to return to menu...");
                        Console.ReadKey();
                        Console.Clear();
                    }
                    catch (Exception)
                    {
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        makeChanges = true;
                        Console.ReadKey();
                        Console.Clear();
                    }
                    break;

                case "5":
                    Console.WriteLine("Enter a MPG");
                    try
                    {
                        carToUpdate.MPG = int.Parse(Console.ReadLine());
                        Console.Clear();
                        Console.WriteLine($"MPG is now {carToUpdate.MPG}\n");
                        Console.WriteLine("Press any key to return to menu...");
                        Console.ReadKey();
                        Console.Clear();
                    }
                    catch (Exception)
                    {
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        Console.ReadKey();
                        Console.Clear();
                        makeChanges = true;
                    }
                    break;

                case "6":
                    Console.Clear();
                    break;

                default:
                    Console.Clear();
                    Console.WriteLine("Invalid selection. \nPress any key to continue...");
                    Console.ReadKey();
                    Console.Clear();
                    makeChanges = true;
                    break;
                }
            }
            if (carToUpdate == null)
            {
                Console.WriteLine("Could not find that car");
                Console.WriteLine("Press any key to return to menu...");
                Console.ReadKey();
                Console.Clear();
            }
        }
        public void NewGasCar()
        {
            bool addNewCar     = false;
            bool chooseMake    = false;
            bool chooseModel   = false;
            bool chooseYear    = false;
            bool chooseCTD     = false;
            bool chooseMPG     = false;
            bool chooseChanges = false;
            bool makeChanges   = false;
            var  newCar        = new GasCar();

            while (addNewCar == false)
            {
                Console.Clear();
                chooseChanges = false;
                while (chooseMake == false)
                {
                    chooseMake = true;
                    Console.WriteLine("What is the make of this car?");
                    newCar.Make = Console.ReadLine();
                    Console.Clear();
                }
                while (chooseModel == false)
                {
                    chooseModel = true;
                    Console.WriteLine("What is the model of this car?");
                    newCar.Model = Console.ReadLine();
                    Console.Clear();
                }
                while (chooseYear == false)
                {
                    chooseYear = true;
                    Console.WriteLine("What is the year of this car? (yyyy)");
                    newCar.Year = Console.ReadLine();
                    Console.Clear();
                }
                while (chooseCTD == false)
                {
                    chooseCTD = true;
                    Console.WriteLine("How much does this car cost per year to drive?");
                    try
                    {
                        newCar.CostToDrivePerYear = int.Parse(Console.ReadLine());
                        Console.Clear();
                    }
                    catch (Exception)
                    {
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        Console.ReadKey();
                        Console.Clear();
                        chooseCTD = false;
                    }
                }
                while (chooseMPG == false)
                {
                    chooseMPG = true;
                    Console.WriteLine("What is this car's MPG?");
                    try
                    {
                        newCar.MPG = int.Parse(Console.ReadLine());
                        Console.Clear();
                    }
                    catch (Exception)
                    {
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        Console.ReadKey();
                        Console.Clear();
                        chooseMPG = false;
                    }
                }
                while (chooseChanges == false)
                {
                    chooseChanges = true;

                    Console.WriteLine("Please review the information for the new car\n");
                    newCar.PrintProps();
                    Console.WriteLine("\nDo you want to make any changes to this car?(y/n)");
                    string changesAnswer = Console.ReadLine().ToLower();

                    switch (changesAnswer)
                    {
                    case "y":
                        makeChanges = true;
                        break;

                    case "n":
                        addNewCar = true;
                        break;

                    default:
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        Console.ReadKey();
                        Console.Clear();
                        chooseChanges = false;
                        break;
                    }
                }
                Console.Clear();
                while (makeChanges == true)
                {
                    makeChanges = false;
                    Console.WriteLine($"What property would you like to change? Or select 6 to add the new car.\n");
                    newCar.PrintProps();
                    Console.WriteLine("6. Continue");
                    string propertyAnswer = Console.ReadLine().ToLower();
                    switch (propertyAnswer)
                    {
                    case "1":
                        chooseMake = false;
                        Console.Clear();
                        break;

                    case "2":
                        chooseModel = false;
                        Console.Clear();
                        break;

                    case "3":
                        chooseYear = false;
                        Console.Clear();
                        break;

                    case "4":
                        chooseCTD = false;
                        Console.Clear();
                        break;

                    case "5":
                        chooseMPG = false;
                        Console.Clear();
                        break;

                    case "6":
                        addNewCar = true;
                        Console.Clear();
                        break;

                    default:
                        Console.Clear();
                        Console.WriteLine("Invalid selection. \nPress any key to continue...");
                        Console.ReadKey();
                        Console.Clear();
                        makeChanges = true;
                        break;
                    }
                }
            }
            if (addNewCar == true)
            {
                _cars.AddCarToDirectory(newCar);
                Console.Clear();
                Console.WriteLine($"You have successfully added the {newCar.YearMakeModel}.");
                Console.WriteLine("Press any key to return to menu...");
                Console.ReadKey();
                Console.Clear();
            }
        }