Fortran function remembers values (newbie help)

Yes, that will definitely be helpful for newbies!