Doctors and lawyers provide a good example of how unions (though they don't refer to themselves as that) can be embedded into the legal framework. With these unions also having control over the number of newly qualified workers admitted each year, supply is also sufficiently curtailed.