Sample code for educational purposes.