CODE FOR DEMO