example code from talk