... using for loop