Some examples of recursion using ruby