Library, Shelf, and Book class in Ruby