adding plot 4 and its code
Separating plotting code out into four files and doing a bit of cleanup