Create factory method sample