Modifying Dynamic Programming

This works, but...

(next)