completed chapter 10 of tutorial