Added ex6.rb