Building up models for votes, races, and ballots and their associations