add to ex10.rb