BOULDER - A former University of Colorado student who faced accusations of getting a professor and seven classmates sick with brownies that were cooked with marijuana.

Thomas Cunningham, 21, pleaded guilty to one count of inducing consumption of a controlled substance by fraudulent means. Cunningham faced 17 other felonies, but those were all dropped after he made his plea deal. He was sentenced to 24 months deferred sentence and must serve 120 hours of community service. He must also pay restitution to the victims.

According to police, Cunningham and his 19-year-old friend Mary Essa brought pot brownies to history class. They did not tell the class the brownies contained marijuana. Later that day, their classmates complained about being disoriented and anxious. The assistant professor and two other students had to be hospitalized due to the pot brownies.

Essa is set to be arraigned on April 15.