Almost complete first example in tutorial.