For Assignment 2, Programming in R course