all changes in class 12/4
made method searchProcedure to remove redundant code in menu