for loop exercise