Update SampleImpl.java

main method added