write FeatureVector as a template