Solutions to all exercises from Chapter 6