working on tutorial
cleanup code for tutorial.