For assignment in R Programming in Coursera