added template file for flattener program