added main function to class1.java