Updated for loop example