added ex24.rb