added book.rb and rubocop fixes