threadsafeTeacher added and unittested