refactoring for car details