Added ex9.rb