loop and iterator examples