First attempt at dependency injection.