Groundwork for exercise 2.