The code given in Problems 40 and 41 was wrong. It has been corrected.