A multiagent implementation of voting procedures