Companion code for session S3011 (GTC 2013)