Add example using params. Fixes #6