modified a rspec example