for loop exercise
no idea what changes were made