cleaned up recursion examples