implemented MajorityVote