first failure at solving recursively