add examples at bottom, and fix getAllBooks method