Task 3: Correcting sigma equation.