Rename demo1 to template, put templates code in here