implemented Library#book_keys and Library#rotate
improved Library#book_keys