Demonstration of the Reiter method for solving models with heterogeneous agents and aggregate shocks in general equilibrium. Solves a simple model of firm investment with persistent aggregate and idiosyncratic productivity shocks. UPDATE: Consider looking at https://github.com/jeromematthewcelestine/hadsge for Reiter-method code instead.