Added example code for Swansea talk.