Added ex 10.rb