add code and slides for dependency injection