updated knapsack example (WIP)