final version of script

added plots