Completed chapter 7 exercises 1-3