WHITE RIVER JUNCTION — A Springfield man is heading to jail for selling crack cocaine.

William Aviles, 36, pleaded guilty Thursday in White River Junction criminal court to a felony count of cocaine sales. He was sentenced to two to four years in jail. The judge also recommended that Aviles participate in the state Department of Corrections’ work camp program which could result in less time behind bars.

In May, police said a confidential informant told them about buying drugs from Aviles “for numerous years” and offered to cooperate.

Court records stated that on two occasions that month detectives watched as the informant went to Aviles’ home. The informant met Aviles at his door and then they walked to Aviles’ garage. Each time the informant purchased two grams of crack cocaine rocks at a price of $100 per gram, according to court records.