R Programming Assignment 3 for the Johns Hopkins Data Scientist course on R programming (coursera)