Modify ex2.rb