added ProblemFour.java