code to read data file and create 4 plots for project1