Professor said to stay after class