R Snippets frome the course on coursera