Tidied up some code after running reek
Added rating to page class. Removed hashes since they were made obsolete by this change.