Move code for printing the menu items to it's own function