Updated an example demonstating the api