Add declarative usage to the basic example