solved exercise 1.20