Added MainClass.java file.