All code from book typed in and exer 3.33 completed.