The family is at a downtown department store, where among other things Lisa looks at the latest in fashion for young girls, Marge gets some rejuvenating cream, Homer uses the dressing room for something other than trying clothes on, and Seymour and Edna are selecting some wedding china. Bart uses the wedding gift registry to sign himself and his bride "Lotta Cooties" for wedding presents. He invites a number of people to attend his wedding and he plans to return all the unused gifts for store credit. He gets all the gifts delivered but he gets caught by Chief Wiggum. The judge sentences Bart to six months of juvenile detention.
Bart tries to find his way at the center, and when Homer becomes a guard, it doesn't improve his situation at all. The boys and girls are brought together for dance lessons, but Bart's partner Gina decides that they have an opportunity for escape and since they've been handcuffed together, she brings him along. Out on the lam together they become attached, even after they've gone to a blacksmith to get their cuffs removed; because when Gina is own her own she knows she has nothing to return to, whereas Bart has a family. When the pair is found, Gina makes a confession that makes it so Bart is free to return to his family. That night the Simpsons return to the prison to surprise Gina with a family meal.