How can I create an array of agents of same type?

In reply to SharonBeaulah:

Could you please show some code related to the error you get.