In medieval times, the kings would have meetings of parliament, where there would be three levels of society: clergy, nobility, and common people. The clergy and nobility would meet with the king in a separate room, while the commoners waited outside. Then, a spokesman would come to the common people to say what the nobility and clergy had decided, and advised them to vote the same way. Eventually, the commoners voted someone among them to be their speaker, and he would tell the king's spokesman the changes that the commoners wanted. This influenced the idea of a representative democracy, in which everyone has a say in who they want to represent them, and then this representative acts as the vote of many.