Exercise 10.6 solved parcially