Add recursion class