code with menus