Implemented difftree model