Chapter 14: add solution for 8