add code of teacher part