model-node is not dependent on message function anymore; started implementation of the tree model