In the early middle ages Wales was divided in several kingdoms, each with its own laws. Hywel ap Caell, usually known as 'Hywel Dda' or Hywel the Good, who became king over nearly all of Wales in 942, is credited with having brought these different systems into a single body of law, although three different versions exist: for Venedotia (north Wales), Dimetia (south Wales), and Gwent (south-east). The Law continued in use in Wales until the union with England in 1536. A law book such as this, although written by a professional scribe, would have been compiled by professional lawyers, who would have practiced law by traveling a circuit of courts rather than being based in any one location. Diagrams such as this one appear in a number of medieval Welsh law manuscripts. It concerns 'Laws of Court.'