added example 11, ex11.rb