Gali 2002 dynare code

Hi,
Does anyone know how to code for Figure 3 and 5 in Gali’s paper 2002?

All the best!