Iterating through the array