Adding levels to the data structure of tree

To be used for hierarchies in the CSS later on