Add static factory method example