Make 1-n and n-n class links