add solution for dependency injection exercise