main method added to MyClass