add search functionality and example output