added rspec for testing.