Update MyClass.java

added main method