Pātuhitia tēnei: Stochastic optimal control: the discrete time case