This is the code from my CS410 class, Programming Paradigms. We had to learn LISP and Prolog. I rather like both of them.