Title: A stages approach to comparative advantage