Update grid_tools.rb