- little refactoring based on Knapsack class