Update MainClass.java

Added Main Method