first commit to chapter 7; just skeleton
basic model, slow to converge