did moses write the pentateuch