4.12 A Dynamic Optimization Problem