Short R programs used for a Coursera course