An Elementary Theory of Comparative Advantage