adds more functions to election class