added ex30.rb