sample of the new api