R codes that are used for Financial Applications