Sample code for learning.