Using dependency injection