The correct answer is the last option. A guild is an association of artisans or merchants who oversaw and trained new merchants (apprentice). They were organized in a manner of a professional association, trade union, cartel, and secret society. The important result of guilds is emergence of universities of Bologna, Paris and Oxford.