student gets punished by professor