Update array.cpp