Update for loops sketch