Implement class TreeItem hierarchy

Implement hierarchy of classes that are supposed to be added to the tree.