Using for loop