Refactoring: Contract is now a model
Votes handling