Worked on the 2D arrays.