added ex12.rb
added ex13.rb