Adding ex3.rb (a math example) and ex3ec.rb (extra credit exercise using math).