Sample code of my learning period