Update Main.java
Update test file and test output