add greetings class and tests