adding dependency injection with dice