completed chapter 6 -- control structures