This paper is part of a project to model the interaction between heterogeneous agents in intertemporal stochastic models and to develop numerical algorithms to solve these kind of models. It is well-known that solving dynamic heterogeneous agent models is a challenging problem, since in these models the distribution of wealth and other characteristics evolve endogenously over time. Existing dynamic models in the literature contain therefore just two agents or other simplifying assumptions to limit the heterogeneity.