Cunningham, James, 1788-1867