Fixed errors in chapter 1