New code examples added to appendix