Implementing a computable general equilibrium model with heterogenous firms and endogenous productivity. (2016)