To iterate over an array