Extend sequence and reference classes with relationships among them