Implemented dependency injection with Dagger.