For Programming Exercise 1 of AA.