Menu functions extracted from util and added to new class Menu