Initial tree model implementation.