ex15 - traverse arrays using indices