added getBook function