implement zen tree