add vote_function
Merge pull request #14 from zakiry/vote

add vote_function