greeter refactored into class
moved into examples