Created a main method for class SampleClass.java