step 2: implemented the menu