Original source code for demonstration purpose.