Started to implement a search function. Still not working