Made the necessarry implementation for searchBook.