We construct a model of firm dynamics with heterogeneous productivity and distortions. The productivity distribution evolves endogenously as the result of the decisions of firms seeking to upgrade their productivity over time. Firms can adopt two strategies toward that end: imitation and...