A former D.C. high school teacher was sentenced Monday to five years in prison for exchanging pornographic images with a teenaged student.

John Solano, who taught science at McKinley Technology High School in Northeast, pleaded guilty in U.S. District Court in July to receiving child pornography. He admitted to receiving inappropriate and sexually explicit text messages from a 16-year-old student, according to the office of U.S. Attorney Ronald C. Machen Jr.

Solano, 30, also had “inappropriate sexual communications” with other students, Machen’s office said.

Solano has been in jail since his arrest on the high school campus in March. He will be put on supervised release for 10 years after completing his prison term.