Dependency injection implementation