added ex31.rb
added ex32.rb