C3W1A1 combine_sample()

The information is towards the end of that thread. E.g. this post and the one after that give the idea.