A dependency injection experiment