completed chapter 7 exercises
fixes