Add example that demonstrates how notebooks can be used to derive and implement numerical algorithms

Cleaner version of earlier pull request #363