Added method all to factory