Dunno why people are saying this is vengeance like its a bad thing. Damn right is vengeance. Vengeance is a legitimate goal of the justice system.
Perhaps 50 lashes in the square would suffice but for some reason we as a society decided it's more humane to lock people up like animals at taxpayer expense than whip em.