John Tyler (March 29, 1790 – January 18, 1862) was the tenth president of the United States from 1841 to 1845 after briefly serving as the tenth vice president in 1841; he was elected vice president on the 1840 Whig ticket with President William Henry Harrison. Tyler was the first president to see his veto of legislation overridden by Congress. John Tyler was born on March 29, 1790; like his future running mate, William Henry Harrison, Tyler hailed from Charles City County, Virginia, and was descended from aristocratic and politically entrenched families of English ancestry. The Tyler family traced its lineage to colonial Williamsburg in the 17th century. Tyler graduated from the school's collegiate branch in 1807, at age seventeen. Among the books that formed his economic views was Adam Smith's The Wealth of Nations, and he acquired a lifelong love of Shakespeare. His political opinions were shaped by Bishop James Madison, the college's president and namesake of the future president; the bishop served as a second father and mentor to Tyler.