nested templated example added