iteration class exercises