finished 1st version of template