modified tree example