Question about create new atom

Dear all,

I have written a perl script to create a line of new atoms which has been shown below:

ps.png

After running this perl script, I have got a line of new atoms:

line.png

Now I would like to create a plane and a volume of new atoms just as these two figures below:

plane.pngvolume.png

How to modify my script?

Thanks.

Best regards,

Yours

CHENG Xu