added template demo