trying to follow basic templating in tutorial