R open quant finance tutorial part 3