Writing a simple knapskack problem.