refactored "sample" to "demo"