all Democrats. In accordance with state statute, the secretary of the commonwealth administers elections, regulates lobbyists and the securities industry, registers corporations, serves as register of deeds for the entire state, and preserves public records as keeper of the state seal. Meanwhile, the attorney general provides legal services to state agencies, combats fraud and corruption, investigates and prosecutes crimes, and enforces consumer protection, environment, labor, and civil rights laws as Massachusetts chief lawyer and law enforcement officer. At the same time, the state treasurer manages the state's cash flow, debt, and investments as chief financial officer, whereas the state auditor conducts audits, investigations, and studies as chief audit executive in order to promote government accountability and transparency and improve state agency financial management, legal compliance, and performance. Legislative branch The Massachusetts House of Representatives and Massachusetts Senate comprise the legislature of Massachusetts, known as the Massachusetts General Court. The House consists of 160 members while the Senate has 40 members. Leaders of the House and Senate are chosen by the members of those bodies; the leader of the House is known as the Speaker while the leader of the Senate is known as the President. Each branch consists of several committees. Members of both bodies are elected to two-year terms. Judicial branch The Massachusetts Supreme Judicial Court (a chief justice and six associates) are appointed by the governor and confirmed by the Executive Council, as are all other judges in the state. Federal court cases are heard in the United States District Court for the District of Massachusetts, and appeals are heard by the United States Court of Appeals for the First Circuit. Federal representation The Congressional delegation from Massachusetts is entirely Democratic. The Senators are Elizabeth Warren and Ed Markey while the Representatives are Richard Neal (1st), Jim McGovern (2nd), Lori Trahan (3rd), Jake Auchincloss (4th), Katherine Clark (5th), Seth Moulton (6th), Ayanna Pressley (7th), Stephen Lynch (8th), and Bill Keating (9th). In U.S. presidential elections since 2012, Massachusetts has been allotted 11 votes in the electoral college, out of a total of 538. Like most states, Massachusetts's electoral votes are granted in a winner-take-all system. Politics Massachusetts has shifted from a previously Republican-leaning state to one largely dominated by Democrats; the 1952 victory of John F. Kennedy over incumbent Senator Henry Cabot Lodge, Jr. is seen as a watershed moment in this transformation. His younger brother Edward M.