A Geometric Path to the Concept of Function