Added folders dynamic programming and object