$root element and automatic classes