A judge gives out punishments