example of iters use with I/O