array of array approach inadequate revising with object