added sayGoodbye function