demo to learn new API