Add in Function section, add title, add source code to Appendix