Solution for Exercise 11.6