completes array excercise