Statistics code samples