block and iteration examples