Add automatic parentClass to children