Moved voting method to model