Fixed bug in chapter 2, problem 10.