Figures and code for assignment