Added a method to get text from a book