if + for loop tutorial guff