Update code samples

@markmcd @dh--