Title: Parallel programming using composition of templates