Code & tests for iteration methods