Modified Test.java
Fixed Main class