Code samples for recursion tutorials