Added skeletal implementation for the search function