added example for dependency injection