His last thoughts were of his wife, his three sons, and how his students were doing on the assignment.