Comment utiliser format factory