Completed Chapter 1 Exercise 1-9 from SICP