code for generating plots for course project 1, and the generated plots