Model system changed - setting parent to the elements.

* Elements can determine its parent in the visitor.