using rspec, and then refracting