My version of the dynamic knapsack problem