add a main.java for test