Added make a menu function, refactored code to build functionality.