add ex 2.28
remove unnecessary iteration procedure
add ex 2.29