working library
reviewed by Gilbert
changed library to a function ala extention 2
add getBook function