improving my understanding of arrays