blocks and update in array.rb