add demo of template assignment