adapted Car class to use dependency injection design pattern
Merge pull request #1 from KPyrzyk/DI

adapted Car class to use dependency injection design pattern