Completed working file and moved each plot to a separate script.