A Montana judge added a twist to one man's sentence that seemed inspired by middle school detention.

Judge G. Todd Baugh was over the sentencing for Pacer Anthony Ferguson, a Montana man who fractured his girlfriend's face in three places after punching her, reports Gawker. Ferguson has a lengthy criminal record and was convicted of misdemeanor assault in this most recent case.  He was ordered by Baugh to served the maximum six months in jail and $3,800 in restitution for the victim's medical fees. 

But on Monday, Baugh tacked on an additional requirement not often seen witnessed in the courts. He ordered Ferguson to write "boys do not hit girls" 5,000 times. And the letter must be mailed to Baugh by May 23. 

But lucky for Ferguson, due to multiple violations he has received since his release for an attempted knifepoint robbery in 2003, he was also sentenced on Monday to eight years in prison -- more than enough time to get that letter to Baugh.