Needed help in a ruby script with user interaction involved!

Hi all,

I am struck at this point and needed some help in ruby
I wanted to write a script that accepts the no of VNICs the user wants to create and
then ask for the name of each Vnic he wants
then use these names to create the corresponding Vnics

Eg: suppose that there are 2 Vnics to be created
Then the user should be asked for the names of these and upon entering the names the corresponding ones are created

PS: this is actually a part of the wrapper script that i am struck with!
The command to create the Vnic is already present i just need to know how to include the names provided by the user into the command so that the job is done!

Could anyone please help me
Thanks