If you want to punish someone then you should restrict their freedom.