Added bulk class-relation assignment