Added Rspec testing to program