Implemented Tree, TreeItem and resources.