Add a tutorial.

Closes #6