adding depth attribute to nodes
adding cleaned up notebook