Creating a method for main menu