updated ex15.rb