Finished for-loop exercise