moved car code to separate class