Build jar and implement sample with new interface