Finish knapsack exercise