Fixed errors in chapter 2