Update Main.java

Updated code to V0.2