How to run source addition and deletion for multiple video source in Deepstream?

Hi,
I’ve successfully run “deepstream_reference_apps/runtime_source_add_delete/” from https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/master/runtime_source_add_delete. It was run perfectly. But the problem is, this addition and deletion for one video source. So how can I put and run multiple video source for runtime source addition and deletion example?

Could you also refer the deepstream-test3 source code?