How to implement dependency injection in scala without any libraries.