Refactored tutorial.