created some Vote class methods