Implemented setCellArray method