A former high school chemistry teacher convicted of cooking methamphetamines in New Mexico, like the fictional Walter White character in the AMC TV show "Breaking Bad," has been sentenced to four years in prison.

New Mexico District Judge Fernando Macias imposed a nine-year sentence but suspended all but four years against John W. Gose.

The 56-year-old Gose recently pleaded guilty to trafficking by manufacturing a controlled substance.

Gose was arrested in October after police discovered glassware, rubber tubing, and chemicals used to cook methamphetamines during a routine traffic stop.

New Mexico State Police later found more chemicals and supplies at his southern New Mexico home.

Authorities say Gose taught high school science in El Paso, Texas, and middle school science in Las Cruces, New Mexico.