comments added to the code for the menu