finished Array2 exercise