added serch function in class