Modeling Democracy