knr2: Completed exercises 2-06, 2-07, and 2-08.