adds scopes
updates index.html.rb and books model