implement car factory for testing