created example, and made all the necessary changes for the API to work