array exercise homework