add a new class for solving DP from simulated log