appendix lab_2 fixed