Sheng's R code for Financial Engineering