example on how to use the provided API