An Idealist Justification of Punishment