@philipithomas can you clarify what you mean here? That line is modifying the size of the list `sample` to `n`