Implemented class factory method to all Vehicle objects