Example depth-first recursion script
Added some comments and did some formatting