updated ex15.rb with comments