[IMP]: implement basic search function