Refactor rspec; exercises chapter 5