Update Main.java

Main class for running the program