This is a code for recursion.