added rspec examples