refactored GoodbyeWorld and added a test.