Sorry, pet peeve. It's "who". "Classmates" are the ones doing "could not grasp" instead of "could not grasp" being done to them.
"He" could not grasp. => "Who" could not grasp.
I should vote for "him" => "Whom" should I vote for?
"He" could not grasp. => "Who" could not grasp.
I should vote for "him" => "Whom" should I vote for?