added example 10, ex10.rb