array and iterating arrays exercise