Hello Thanks a lot it is working and giving me the desired output. But I am little confused about two things. 1. Is the Init_Name I am declaring and calling from the ruby file, Is it acting like a Library function? If not, how to create a library function? 2. What does the require command do? Regards Tridib -- Posted via http://www.ruby-forum.com/.