final knapsack.zpl working