Made the example functional. Fixes #7