updated ruby file to pass rspec tests - 6 tests still pending