Figures and code for the assignment 1

Figures and code