rules of the law of damages