Gains from specialization and trade