How to create an array of sources