Refactor function show_menu into class