extracted ui out to an interace and changed printWelcomeMesage to
displayWelcomeMessage