Continued work on tutorial to add source code and explanations.