Implementing dagger

Dependency injection through Dagger.