add notes and example code from recursion lecture