Assignment 7: question 1 / SICP Exercise 4.59