Chapter 9: 40 Days and 40 Nights Fasting
Compare to Exodus 32; this is the same story but from the perspective of Moses. Moses gathers the congregation of Israel and reminds them that they can conquer a nation greater than themselves. The reason that they were going to have the power to drive the giants out of their land, is because the people residing in the land were wicked.
Moses tells the congregation that he spent 40 days/nights fasting; drinking neither water or eating bread. This way he was more receptive of the spirit and this is what probably enabled him to see God and receive the Ten Commandments along with other instructions from the Lord.
Chapter 10: Love God
When Moses was on the mount for forty days/nights the Lord commanded him to make a small ark of Shittim wood to place the tablets of stone in. All that God requires, is that the congregations of Israel loves and serve him, if they do this, they will also love and serve their neighbor and the stranger in the land. Because they were once strangers in the land of Egypt too.