created getVehicle method for factory