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

In reply to chrisspear:

Little heads-up, I’m kind of new to this and sorry if it’s so basic.
I tried this one and this is what I’m getting. I’m using UVMF so most of the code is auto-generated.

UVM_FATAL @ 0.000ns: uvm_test_top.environment.wali[0].wali[0]_driver [DRV] BFM handle with interface_name is null

I tried adding them to BFM as well, but it’s looking for that particular instance name and it is not accepting it as the name of BFM because of the index.