Assignment for R Programming Assignment on coursera