The logic shouldn't be too much different, just need to take into account the different probabilities of each child.