partial iteration for h1
chapter 13 done