greetings with class and method