hamilton s role in election