properly saving teacher and course now