Add solution to exercise 1-20.