+ added code for the exercise at 17.11