TUPELO, Miss. (AP) — A juvenile detention center in Mississippi has put a larger classroom in place for the coming school year.

The Northeast Mississippi Daily Journal reports (http://bit.ly/2swFcqK ) a portable building was moved from Guntown Middle School to the Lee County Juvenile Detention Center in Tupelo.

Sheriff Jim Johnson says until now, young people in the detention center have been taught in a small conference room. Space was a problem because the detention center can hold up to 30 people but the room could only hold eight.

Johnson says on average, classroom space is needed for about 12 students at a time.

The federal government requires juveniles in detention to still receive schooling.

Some are only held for a few hours, while others stay longer as their cases move through youth court.