updates to exercise 2 arrays