basic for loop

watch out for infinte loops