fix ch05 example