converting template to use dynamic values, writing first test