chapter9example5a.c