use 2d array