Class diagram for tree and movement