mainframe addition

Implemented Search method in the mainframe