Code samples for the second tutorial.