add a sample for iteration in test and README.md