Completed chapter 4 listing 1 and 2