updated example file to reflect closures and Token