R code for coursera course: Introduction to Mathematical Finance and Financial Econometrics