Here, we initialize result table, if in the following while loop we don't find any data to dispatch, then we will return this value, otherwise, the result able is overwritten in the wile loop.