Sample code for explanation purpose.