working on SICP section 2.1
working on sicp ex 2.3