duncan: added a class that find dependence