actual java files for problem 3

Putting the correct file in there.