K&R Exercise 3-2