the moment I understood recursion and trees