initial version of the template based demo