Program and plot for Project 1