Updates ex6.2.rb