homemade dp

.