Edited the greeting and printed messages to the user.