added Lab two java file