Example code written for my own learning purposes.