R programming - according to the coursera course