add greeting method to Person class