Translation of "to substitute for"? I'm writing an email to a teacher and I'm trying to say "two weeks ago, you substituted for the teacher of my class". I'm trying to figure out how to say "substituted" and I haven't been able to figure out the right word in the context of a class. I've found 替代，代替，取代, etc., and I can't figure out which one's correct in this context.
'you substituted for the teacher of my class' = 你给我们班代课