Assignment 2 - DP