Exercise 3.23: Plan how to solve