Creating Multiple files from a template files