Finished appendix 2