code samples for DIGH 402