getAllBooks() method created