Code and graphics for week1 assignment, for plots 1-4.