Added ex12.rb