code demoed for iteration 4