write code for populating nominees, candidates and voters for election