Factory function

Example
Factory function

Explain