Implement simple treemodel.
WIP: treemodel