This is the refactored code.
1) Removed code that was pointless
2) Replaced if statements with ternary operators to shorten up the code.
3) made a function that will print out the menu for the user.