three classes: library, shelf, book