Demonstration code