Commented code of demoController