The Torah talks about many events that take place after the Revelation at Sinai, when God gives Moses the Torah. Does that mean Moses learned about what he was going to do before he did it? How does that interact with the Jewish concept of free will?