Complete exercises from Chapter 7