Он наблюдает преподавателя
In this case the teacher is feminine. But am I correct in thinking that the animate masculine applies because the noun is masculine? I.e. the animate masculine rule is based on the gender of the noun and not the gender of the person referred to?