DP subtree - Course 5