exercise7.rb