added ex10.rb