Example code for teaching and learning