knr2: Completed exercise 3-04.