first few sicp exercises
ex 1.6 and part of 1.7