refactored GreetingService into an interface and concrete class