Added exercise7.rb