Updated with tree example