I replicated BY2004 by myself. It is a good way of learning DSGE. I hope these materials helpful.
What a shame! .m file is not supported so I attached .txt files! Please make sure you have added necessary files for dynare++ and matrix2latex.m to your working path!
If you have any question please feel free to comment.