Added code for all four functions, plus the resulting PNG files
Forgot to save plot4.R before commit!