An example of dependency injection