Programming Assignament 2 for R Programming Coursera