adding a example for the API