Created R and png files for coursera assignement.