Updating code samples.