implements greeting via class/method