Updated. Done partitionProblem