Changing state variables to include two products per problem