code samples update