add teacher and student relationship to course