adding attr_accessors specified under the relationships part of the document