How the elections work