through dynamic programming principle for a class of optimal control problems for