Finished list function in recursion