The professor is teaching to their students.
A professor is teaching a class