lees initial version of knapsack