Used a for loop