Example of dependency injection