filled in ruby code and rspec