Function for Figure Four C.
Function for Figure Four D.