Updated ex9.rb
Added ex10.rb