Merge pull request #9 from hakandilek/master

Introduce dependency injection