Batman Beyond: Season 2, Episode 16
Terry's classmates get sent to a strict boarding school, which resembles a prison from the Middle Ages.