added ex11.rb and ex12.rb