adding sir demo code verbatim.