Update SampleImpl.java

main calls method