connected classes with xml