completed chapter 4 of AIMA