Figure 2: Fortran code example.