adding function to init List<Car> in Problem class