quant finance tutorial part 4 r open