Aggregate risks and insurance with heterogeneous agents | Synapse