add method to print all the books