Medley, Samuel, 1769-1857