Added SICP exercise 2.34