solutions for exercise 14 1842799