added sample.java