added dependency injection
Merge pull request #2 from DavidHoerster/dependencyInjection

added dependency injection