Introduced factory for the knapsacks