How the Torah was Written