added ex7.rb