create ex39.rb