Added example 9, ex9.rb