explain the law of resistance