Modified second tutorial.