Create a grid of transform instances

I really need to do this, but im pretty new programing so i dont know where begin. What i need is create a grid with colums and rows to instantiate a series of prefabs on scene on determinate distance, and be able to put and change them within the inspector. I was thinking about some loop var, but i cant figure how to do it. Aprecciate so much your help.

alt text

The Manual page on Instantiate has sample code how to do this.

I already did it, was simple after all, i post it in case someone needs it

var cube : Transform;

function Start ()
{

for (var y = 0; y < 5; y++)

{
for (var x = 0; x < 5; x++)

{
for (var z = 0; z < x*y; z++) {
var cube = Instantiate(cube[z], Vector3 (x, y, 0), Quaternion.identity);
}
}
}
}