Dynare coding help

Does anyone perhaps know how to do coding for a DSGE with Financial (in)stability, supervision and liquidity injections? (Based on Gregory de Walque’s 2008 paper) If someone does have a clue, could you please attach an example to the coding, or some idea how to go about doing coding for a model of this nature.

This would be much appreciated!