adding Knapsack