Modern Actuarial Risk Theory: Using R