Principles of the law of restitution