The benefits of mixing rich and poor