Added ex3.rb and updated ex2.rb