Any open source Governance/voting models?

Are there any open source models for Governance that one could implement via smart contracts? A simple vote system would do do the job; where users with a specific token could vote yes/no and cast votes depending on how many tokens they hold?

Maybe you can look at these: