Related classes now auto-defined if necessary.