K & R Exercise 2.1