Example 2 for tutorial.