Problem 38 in lisp
Problem 39 in Lisp
Problem 40 in Lisp.