Fixed sample code.

Closes #67