Application of Stochastic Optimal Control in Finance