updated templete method example with Cow