added sample for default methods used for dependency injection