The solution for the lawyer problem