Added MainClass.java & Reference.java