Backend modified to scale for more recursion exercises