Updated example file to reflect new API methods