knr2: Completed exercises 1-13 and 1-14.