added ex21.rb