gaddis chap3 prob 2