Iterating the array