Kennedy was born into a wealthy, political family in Brookline, Massachusetts. He graduated from Harvard University in 1940, before joining the U.S. Naval Reserve the following year. During World War II, he commanded a series of PT boats in the Pacific theater and earned the Navy and Marine Corps Medal for his service. After a brief stint in journalism, Kennedy represented a working-class Boston district in the U.S. House of Representatives from 1947 to 1953. He was subsequently elected to the U.S Senate and served as the junior senator for Massachusetts from 1953 to 1960. While in the Senate, Kennedy published his book, "Profiles in Courage", which won a Pulitzer Prize. In the 1960 presidential election, he narrowly defeated Republican opponent Richard Nixon, who was the incumbent vice president. Kennedy’s humor, charm, and youth in addition to his father’s money and contacts were great assets in the campaign. Kennedy's campaign gained momentum after the first televised presidential debates in American history. Kennedy was the first Catholic elected president.