adding the test java file given from piazza