Add example program using the new api.