- code for the exercise at 13.10