working on 2D Array