Chapter 14: add solution to the 7th problem