Implementing search function

It works!