Solve SICP exercise 1.24