Fixed YAG tree2 example to not include static method