Refactored code to split out each menu option as its own method for the sake of readability