How does Deuteronomy anticipate the need for repentance and restoration