use reason code in example programs (#18)