Specialization and Cost of Production