Attempting to do sicp excercises