course assignment 2 scripts and plots