API example to understand the source code