Scripting and data analysis code samples