Was able to make it work

But the recursive definition becomes useless