completed chapter 6 (but not working?)