> Is this what you want? > > class MyClass > def setab(i) > @a = i > @b = i*i > end ...Yes it is. Thank you. So I see there is no "main" function to "init" the program in Ruby. -- jilani __________________________________________________ http://space.tin.it/scuola/jkhaldi