added rspec for testing