quiz9
Modified from D.E. Haines page 177