Implemented first version of search