Master-Detail repeats

Here we have two repeats - the second depending on the first by using the index() function. in this ref.