notes for recursion. will be updated more