introduced method to addElectionWithCandidates