ex7.rb