the portrait was that of david ricardo , the british economist from the late eighteenth and early nineteenth centuries , whom leonard knew to be the originator of the concept of comparative advantage , a concept that had achieved acceptance as an important element of modern trade theory .