David and Gale - code passes rspec tests