Code looks better with a for loop