Code for Vehicles based on the test provided