« In its function, the power to punish is not essentially different from that of curing or educating. »