fixed compile errors; books now know their amount of pages