What are the uses of examples in teaching mathematics?

Giving examples, sometimes tons of them, is not an uncommon practice in teaching mathematics. How do we use examples? When do we use them?  In his paper, The  purpose, design,

Pathways to mathematical understanding using GeoGebra

You may want to check-out the first-ever book about the use of GeoGebra on the teaching and learning of mathematics: Model-Centered Learning: Pathways to Mathematical Understanding Using GeoGebra by Ligguo Bu and