3) Example Code (Fortran)