Add greeting and valediction functionality