added ex16.rb