ch7-34 exercise done.