Can someone tell me if this part of the code looks normal in syntax? Especially everything after this comment //Creating a new array, increasing the size by 1. If not, what to change void STO::addNewCar() { cout << "Enter the brand of the car: "; string brand; cin >> brand; cout << "Enter the color of the car: "; string color; cin >> color; cout << "Enter the registration number of the car: "; string registrationNumber; cin >> registrationNumber; double volume, power; cout << "Enter the volume of the car engine: "; cin >> volume; cout << "Enter the power of the car engine: "; cin >> power; cout << "Enter the serial number of the car engine: "; string serialNumber; cin >> serialNumber; //Create a new engine Engine newEngine(volume, power, serialNumber); // Create a new car with an engine Car newCar(newEngine, brand, color, registrationNumber); // Create a new array, increase the size by 1 Car* newCars = new Car[numberOfCars + 1]; // Copy existing objects to a new array for (int i = 0; i < numberOfCars; ++i) { newCars[i] = cars[i]; } // Add a new car to the array newCars[numberOfCars] = newCar; // Free memory delete[] cars; //Updating the pointer to the array cars = newCars; // Increment the car counter numberOfCars++; }