Finished assignment

Added the necessary R code and PNG graphics files.