it worked! injected car factory method which depends on engines and cars