R Program: Coursera Programming Assignment #2