updated; code samples