Bellman Equations and Dynamic Programming