The indirect election plan used to elect the president?

Electoral college.