The University of Colorado student accused of buying a $5 prescription pill from another student recently had his felony charge dropped after taking a plea deal, according to court officials.

Marshall Pedder, 21, pleaded guilty to possession of drug paraphernalia, a petty offense, and was given a six-month deferred sentence. He also was sentenced to 16 hours of community service.

Pedder was arrested on suspicion of possession of a controlled substance, a felony, but that charge was dropped in exchange for the plea.

According to CU police, an employee in the lobby of the Center for Community in March said she saw Nicholas Busbey, 21, sell Pedder a tablet of Vyvanse, a stimulant used to treat attention deficit hyperactivity disorder that also can be used as a “study aid” to help keep students alert as they prepare for exams.

Busbey also pleaded guilty to possession of drug paraphernalia in April and also received a deferred sentence.