added example 39.rb