add Problem.java and ProblemTest.java