He went to Yale University . He got his bachelor 's degree in 1805 and master 's degree in 1808 . He attended Yale University , earning his bachelor 's degree in 1805 , graduating at the age of seventeen , with highest honors , and then earned a master 's degree at Yale in 1808 .