Example solution to the voting simulator.