New version of array task -- with templates