Dirichlet problem for a class of second order nonlinear elliptic equations