use rspec helpers

chapter 8 exercises