Electing the president