There may have been one such institution in Fez in the seventh century, there may also have been one in Baghdad towards the end of the twelfth century, and there certainly was one in Cairo in the course of the century that followed.