added demo.java