Adding source code to the appendix