Group lending with heterogeneous types