Chapter5 of Land of Lisp exercise