add rspec test for book model and cucumber test for browse homepage
adding pagination and refactoring the code