Added ex10.rb