The following appeared in chapter 3 of the Ruby's User Guide: def fact(n) if n == 0 1 else n * fact(n-1) end end Is everything OK here? Dat ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com