Add solution for Exercise 8a.