Exercise for arrays