You could try a two-dimensional array.