Added type constraints checking for newVehicle