Add the second recursive method