Domain classes with relationships