backpack method explained