 He accepted Hupfeld's four sources and, in agreement with Graf, placed the Priestly work last.J was the earliest document, a product of the 10th century BCE and the court of Solomon; E was from the 9th century in the northern Kingdom of Israel, and had been combined by a redactor (editor) with J to form a document JE; D, the third source, was a product of the 7th century BCE, by 620 BCE, during the reign of King Josiah; P (what Wellhausen first named "Q") was a product of the priest-and-temple dominated world of the 6th century; and the final redaction, when P was combined with JED to produce the Torah as we now know it.Wellhausen's explanation of the formation of the Torah was also an explanation of the religious history of Israel.