refactor to include a Menu class that allows or easy changes in the future, along with test and necessary 'requires