Exercise 1-5 K&R2