Add relations classes and list for attributes and relations