Adding voting logic.

Signed-off-by: miyamoto KAZuyuki <m.kazuyuki@gmail.com>