explain for loop with example