added demo, closes #6