added rspec for testiong