functions and fn - closures, references and visibility