exercise6.rb completed