interesting inp iterator example