First Assignment in R programming course - coursera