Simple recursion demo in Ruby