Add my draft for dynamic programming