Code from ATP Dependency Injection presentation